// MainForm.cpp : implementation file
//

#include "stdafx.h"
#include "MainForm.h"


// CConsoleHostForm dialog

IMPLEMENT_DYNAMIC(CConsoleHostForm, CBaseForm)

CConsoleHostForm::CConsoleHostForm(CWnd* pParent /*=NULL*/)
	: CBaseForm(CConsoleHostForm::IDD, pParent)
{

}

CConsoleHostForm::~CConsoleHostForm()
{
}

void CConsoleHostForm::DoDataExchange(CDataExchange* pDX)
{
	CBaseForm::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_RICHEDIT_TEXT, m_edit);
}


BEGIN_MESSAGE_MAP(CConsoleHostForm, CBaseForm )

	ON_WM_SIZE()
END_MESSAGE_MAP()

CString CConsoleHostForm::GetTitle() const
{
	return _T("ConsoleHost Form");
}


// CConsoleHostForm message handlers

void CConsoleHostForm::OnSize(UINT nType, int cx, int cy)
{
	CBaseForm::OnSize(nType, cx, cy);
	
	RECT rect;
	this->GetClientRect(&rect);
	CEdit* ctrl = (CEdit*) GetDlgItem(IDC_RICHEDIT_TEXT);
	ctrl->MoveWindow(&rect);


	// TODO: Add your message handler code here
}
